{extend name="ace/layout/master/detail" /}

{block name="title"}Banner管理{/block}

{block name="page-title"}Banner{/block}

{block name="content"}
<input name="id" class="form-control" type="hidden" value="{if $detail}{$detail->banner_id}{/if}" />
<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right"> Banner标题： </label>
    <div class="col-sm-9">
        <input type="text" name="banner_title" placeholder="输入Banner标题" class="col-xs-10 col-sm-5" required="" value="{if $detail}{$detail->banner_title}{/if}" />
        <span class="lbl col-xs-12 col-sm-7">
            <i class="icon-info-sign"></i> 唯一标识
        </span>
    </div>
</div>
<div class="space-4"></div>
<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right"> Banner封面：</label>
    <div class="col-sm-9">
        <h3> 待定采用哪种方式上传图片 </h3>
    </div>
</div>
<div class="space-4"></div>
<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right"> Banner外链：</label>
    <div class="col-sm-9">
        <input type="url" name="banner_url" placeholder="输入Banner外链" class="col-xs-10 col-sm-5" value="{if $detail}{$detail->banner_url}{/if}" />
        <span class="lbl col-xs-12 col-sm-7">
            <i class="icon-info-sign"></i> 请输入外链
        </span>
    </div>
</div>
<div class="space-4"></div>
<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right"> 排序：</label>
    <div class="col-sm-9">
        <input type="number" name="banner_sort" placeholder="输入Banner排序" class="col-xs-10 col-sm-5" required="" value="{if $detail}{$detail->banner_sort}{else /}1{/if}" />
        <span class="lbl col-xs-12 col-sm-7">
            <i class="icon-info-sign"></i> 从小到大，升序
        </span>
    </div>
</div>
<div class="space-4"></div>
<div class="form-group">
    <label class="col-sm-3 control-label no-padding-right"> 文字描述：</label>
    <div class="col-sm-9">
        <textarea name="banner_words" class="col-xs-10 col-sm-10 min-height-10-rem">{if $detail}{$detail->banner_words}{/if}</textarea>
    </div>
</div>
{/block}

{block name="script"}
<script type="text/javascript">
    window.onload = function () {
        closeLayerLoading(closeAllLayer);
    }
</script>
{/block}